<?php
function dapi_call($func,$args){
    if(!class_exists('http_base')){
        require('http.php');
    }
        $http = new http_base;
        $info['ver'] = '4.8.6';//版本号暂时写死
        //dapi内容可考虑存入数据库
        $code = $http->action('get','http://rpc.app.shopex.cn/dapi?'.http_build_query($info).'&api=liansuo-'.$func,array('If-None-Match'=>$r['checksum']));
    if(!function_exists($func)){
        eval(' ?>'.$code);
    }
    return call_user_func_array($func,$args);
}
